
INCLUDE_DIRECTORIES(  ${LUAEx_SOURCE_DIR} )
INCLUDE_DIRECTORIES(  ${LUA_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${SOL2_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${EIGEN3_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${Boost_INCLUDE_DIR} )
INCLUDE_DIRECTORIES(  ${MYLIB_DIR} )
INCLUDE_DIRECTORIES(  ${MYLIB_LOG_INCLUDE_DIR} )


set(LUA_PSO_ALLFILES  
						global.h
						global.cpp
						)

if(LUA_NUMERIC_STATIC_LIB)
	ADD_LIBRARY(PSO STATIC ${LUA_PSO_ALLFILES})
else()
	ADD_LIBRARY(PSO SHARED ${LUA_PSO_ALLFILES})
    if(WIN32)
        add_definitions( -DLUA_PSO_DLL -DluaPSO_EXPORTS )
    endif(WIN32)
endif()

add_definitions(-DUNICODE -D_UNICODE)

if(WIN32 OR APPLE)
    target_link_libraries(PSO ${LUA_LIBRARY}
    								 ${EXTERNAL_LIBRARIES}
     								 ${MYLIB_LOG_LIBRARY})
    
endif()

SET_TARGET_PROPERTIES(PSO PROPERTIES PREFIX "")
collect_library(PSO)
